Skip to content

arm64: dts: qcom: sc8180x-surface-pro-x: enable SLPI remoteproc and FastRPC sensors DSP - #209

Open
robertijtsma wants to merge 3 commits into
linux-surface:spx/v7.3from
robertijtsma:spx-dts-slpi-fastrpc
Open

robertijtsma wants to merge 3 commits into
linux-surface:spx/v7.3from
robertijtsma:spx-dts-slpi-fastrpc

Conversation

@robertijtsma

Copy link
Copy Markdown

Summary

Enable the Qualcomm SC8180X SLPI (Sensors Low-Power Island) remoteproc and FastRPC SDSP interface on Microsoft Surface Pro X so the onboard 6-axis IMU (LSM6DSO) and magnetometer/compass (AK0991x) are exposed via /dev/fastrpc-sdsp + QMI SSC (hexagonrpcd / libssc / iio-sensor-proxy):

  1. remoteproc: qcom: pas: add SC8180X SLPI compatible
    • Adds the missing { .compatible = "qcom,sc8180x-slpi-pas", .data = &sdm845_slpi_resource_init } match entry (already documented in Documentation/devicetree/bindings/remoteproc/qcom,sm8150-pas.yaml).
  2. arm64: dts: qcom: sc8180x: add SLPI remoteproc and FastRPC SDSP node
    • Adds the disabled remoteproc_slpi: remoteproc@2400000 node with LCX/LMX power domains, SMP2P interrupts, GLINK edge (dsps), and FastRPC sdsp compute context banks (0x05a1..0x05a3).
  3. arm64: dts: qcom: sc8180x-surface-pro-x: enable SLPI remoteproc
    • Enables &remoteproc_slpi using the already-reserved 20 MiB scss_mem (0x99000000) and qcom/msft/surface/pro-x-sq2/qcslpi8180.mbn firmware path (matching adsp/cdsp/mpss).

Verification

  • qcom_q6v5_pas.ko compiled cleanly against Linux 7.3.1-1-surface (0 errors, 0 warnings).
  • sc8180x-surface-pro-x.dts preprocessed and compiled with dtc (0 errors, 0 new warnings).
  • ./scripts/checkpatch.pl --no-tree on all 3 commits: 0 errors, 0 warnings.
  • Live-tested on Microsoft Surface Pro X SQ2 (SC8180X, Linux 7.3.1-1-surface) with hexagonrpcd-sdsp + iio-sensor-proxy (auto-rotation, accelerometer, gyroscope, and compass working).

The SC8180X SLPI (Sensors Low-Power Island) uses the same PAS ID (12),
LCX/LMX power domains, and resource layout as SM8150/SDM845, and
qcom,sm8150-pas.yaml already documents qcom,sc8180x-slpi-pas.

Add the explicit qcom,sc8180x-slpi-pas match entry pointing to
sdm845_slpi_resource_init.

Signed-off-by: robertijtsma <37256770+robertijtsma@users.noreply.github.com>
Add the disabled SC8180X SLPI remoteproc node at 0x2400000 with its
GLINK edge (dsps) and FastRPC SDSP compute context banks (SMMU SIDs
0x05a1..0x05a3) so boards can expose SLPI-attached sensors through
FastRPC and QMI SSC.

Signed-off-by: robertijtsma <37256770+robertijtsma@users.noreply.github.com>
Enable remoteproc_slpi using the already-reserved 20 MiB scss_mem
region and qcslpi8180.mbn firmware to expose the onboard LSM6DSO 6-axis
IMU and AK0991x magnetometer via FastRPC (/dev/fastrpc-sdsp) and QMI
SSC (hexagonrpcd / libssc / iio-sensor-proxy).

Tested on Microsoft Surface Pro X SQ2 (SC8180X, Linux 7.3.1-1-surface).

Signed-off-by: robertijtsma <37256770+robertijtsma@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant